#ifndef FRESHNET_H_
#define FRESHNET_H_

#include <string>
#include <vector>

#include "IError.h"
#include "Database.h"
#include "Query.h"
#include "StderrLog.h"
#include "RssFeed.h"
#include "Post.h"
#include "Feed.h"
#include "DbFeed.h"

string tosql(string s); 

class FreshNet {
  private:
    Database db;
    string initDatabase(string dbFile);

  public:
     FreshNet(string dbFile);

    void addFeed(Feed & feed);
    bool containsFeed(string feedUrl);
    void removeFeed(std::string feed);
     vector < Feed > getFeeds();

    void visitLink(std::string url);
    static void printUsage();
};

#endif				/* FRESHNET_H_ */
